<!DOCTYPE html>
<!-- saved from url=(0042)http://wx.zhongfubang.com/invite_list.html -->
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<link href="./css/mui.min.css" rel="stylesheet">
		<link href="./css/setting.css" rel="stylesheet">
		<style type="text/css" abt="234"></style>
		<style type="text/css"></style>
		<script>
			//console.log('a')
		</script>
		<script>
		</script>
		<style type="text/css">
			object,
			embed {
				-webkit-animation-duration: .001s;
				-webkit-animation-name: playerInserted;
				-ms-animation-duration: .001s;
				-ms-animation-name: playerInserted;
				-o-animation-duration: .001s;
				-o-animation-name: playerInserted;
				animation-duration: .001s;
				animation-name: playerInserted;
			}
			
			@-webkit-keyframes playerInserted {
				from {
					opacity: 0.99;
				}
				to {
					opacity: 1;
				}
			}
			
			@-ms-keyframes playerInserted {
				from {
					opacity: 0.99;
				}
				to {
					opacity: 1;
				}
			}
			
			@-o-keyframes playerInserted {
				from {
					opacity: 0.99;
				}
				to {
					opacity: 1;
				}
			}
			
			@keyframes playerInserted {
				from {
					opacity: 0.99;
				}
				to {
					opacity: 1;
				}
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">邀请列表</h1>
		</header>
		<div id="app" class="mui-content">
			<ul class="mui-table-view" v-for="v in invite_list">
				<li data-uid="709" class="mui-table-view-cell">
					{{v.beAppUserName}}
					<span class="mui-badge mui-badge-success">0</span></li>
			</ul>
		</div>

		<script src="./js/mui.js"></script>
		<script src="./js/jquery-1.10.2.min.js"></script>
		<script src="./js/common.js"></script>
		<script src="./js/vue.min.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			var vue = new Vue({
				el: "#app",
				data: {
					invite_list: []
				},
				methods: {
					invite_info: function(event) {
						var self = event.currentTarget;
						var uid = self.getAttribute('data-uid');
						mui.openWindow('invite_info.html?uid=' + uid, '', {});
					}
				}
			});

			window.onload = load();

			function load() {
				get_invite_invite_list();
			}

			function get_invite_invite_list() {
				var url = root + 'myCenter/selectInviteList';
				mui.get(url, {
						appUserId: JSON.parse(localStorage.appUser).id
					},
					function(result) {
						vue.invite_list = result.data;
					}, 'json'
				);
			}
		</script>
	</body>

</html>